﻿//INSTANT C# NOTE: Formerly VB.NET project-level imports:
using System.Linq;
using System.Xml.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Shapes;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;

using System.Collections.ObjectModel;
namespace DataBinding
{
	public class Data
	{

		private static Person _objPerson;
		private static ObservableCollection<Person> _objPeople;

		public static Person Person
		{
			get
			{
				return _objPerson;
			}
		}

		public static ObservableCollection<Person> People
		{
			get
			{
				return _objPeople;
			}
		}

		static Data()
		{

			_objPerson = new Person {Birthday = DateTime.Parse("12/25/1960"), FirstName = "Jack", IsActive = true, LastName = "Bauer", Profession = "Agent", Thumbnail = "jackbauer.jpg"};
			//
			//
			_objPeople = new ObservableCollection<Person>();
			_objPeople.Add(_objPerson);
			_objPeople.Add(new Person {Birthday = DateTime.Parse("4/6/1961"), FirstName = "Tony", IsActive = true, LastName = "Almeida", Profession = "Enemy Agent", Thumbnail = "tonyalmeida.jpg"});
			_objPeople.Add(new Person {FirstName = "Jane", IsActive = false, LastName = "Doe", Profession = "Citizen"});

		}

	}

} //end of root namespace